import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/realTimeMonitor',
    name: 'realTimeMonitor',
    redirect: '/realTimeMonitor/index', // 保持不变，因为子路由不重定向回自身
    component: Layout,
    meta: {
      title: {
        zh_CN: '实时监控管理',
        en_US: 'Film',
      },
      icon: 'movie-clapper',
    },
    children: [
      {
        path: 'index',
        name: 'FilmIndex',
        component: () => import('@/pages/realTimeMonitor/index.vue'),
        meta: {
          icon: 'movie-clapper',
          title: {
            zh_CN: '实时监控管理',
            en_US: 'Film',
          },
        },
      },
    ],
  },
  {
    path: '/videoRecordAndEdit',
    name: 'videoRecordAndEdit',
    // 修改redirect以避免与path相同
    redirect: '/videoRecordAndEdit/index',
    component: Layout,
    meta: {
      title: {
        zh_CN: '视频录制与编辑',
        en_US: '视频录制与编辑',
      },
      icon: 'tv-1',
    },
    children: [
      {
        path: 'index',
        name: 'VideoRecordAndEditIndex',
        component: () => import('@/pages/videoRecordAndEdit/index.vue'),
        meta: {
          icon: 'tv-1',
          title: {
            zh_CN: '视频录制与编辑',
            en_US: '视频录制与编辑',
          },
        },
      },
      {
        path: '/videoRecordAndEdit/recordAndEdit',
        name: 'recordAndEdit',
        component: () => import('@/pages/videoRecordAndEdit/recordAndEdit/index.vue'),
        meta: {
          title: {
            zh_CN: '录制与编辑',
            en_US: 'Moment',
          },
        },
      },
    ],
  },
  {
    path: '/timeAnnotation',
    name: 'timeAnnotation',
    // 修改redirect以避免与path相同
    redirect: '/timeAnnotation/index',
    component: Layout,
    meta: {
      title: {
        zh_CN: '时间标记与标注',
        en_US: '时间标记与标注',
      },
      icon: 'cloud',
    },
    children: [
      {
        path: 'index',
        name: 'TimeAnnotationIndex',
        component: () => import('@/pages/timeAnnotation/index.vue'),
        meta: {
          icon: 'cloud',
          title: {
            zh_CN: '时间标记与标注',
            en_US: '时间标记与标注',
          },
        },
      },
      {
        path: '/timeAnnotation/annotation',
        name: 'annotation',
        component: () => import('@/pages/timeAnnotation/annotation/index.vue'),
        meta: {
          title: {
            zh_CN: '多路视频标注',
            en_US: 'Moment',
          },
        },
      },
    ],
  },
  {
    path: '/textAnnotaion/',
    name: 'textAnnotaion',
    // 修改redirect以避免与path相同
    redirect: '/textAnnotaion/index',
    component: Layout,
    meta: {
      title: {
        zh_CN: '文本标注管理',
        en_US: '文本标注管理',
      },
      icon: 'view-in-ar',
    },
    children: [
      {
        path: 'index',
        name: 'TextAnnotaionIndex',
        component: () => import('@/pages/textAnnotaion/index.vue'),
        meta: {
          icon: 'view-in-ar',
          title: {
            zh_CN: '文本标注管理',
            en_US: '文本标注管理',
          },
        },
      },
      {
        path: '/textAnnotaion/textannotation',
        name: 'textannotation',
        component: () => import('@/pages/textAnnotaion/annotation/index.vue'),
        meta: {
          title: {
            zh_CN: '多路视频播放',
            en_US: 'Moment',
          },
        },
      },
    ],
  },
  {
    path: '/dataStoreAndManager',
    name: 'dataStoreAndManager',
    component: Layout,
    redirect: '/dataStoreAndManager/index',
    meta: {
      title: {
        zh_CN: '数据存储与管理',
        en_US: '数据存储与管理',
      },
      icon: 'setting-1',
    },
    children: [
      {
        path: 'index',
        name: 'DataStoreAndManagerIndex',
        component: () => import('@/pages/dataStoreAndManager/index.vue'),
        meta: {
          icon: 'setting-1',
          title: {
            zh_CN: '数据存储与管理',
            en_US: '数据存储与管理',
          },
        },
      },
      {
        path: '/dataStoreAndManager/datastoreannotation',
        name: 'datastoreannotation',
        component: () => import('@/pages/dataStoreAndManager/annotation/index.vue'),
        meta: {
          title: {
            zh_CN: '多路视频播放',
            en_US: 'Moment',
          },
        },
      },
    ],
  },
];
